<template>
  <div>
    <el-row :gutter="24" v-for="(item_row, index_row) in data" :key="index_row">
      <el-col :span="4" v-for="(item_col, index_col) in item_row" :key="index_col" style="padding: 3px 0">
        <span v-if="item_col.correct === true" style="color:#06F">{{item_col.number}}</span>
        <span v-else >{{item_col.number}}</span>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'numbers',

  props: {
    data: {
      type: Array,
      default: function () {
        return []
      }
    }
  },
  watch: {
    data: {
      handler(newVal, oldVal) {
        this.data = newVal
        this.$forceUpdate()
      }
    }
  }
}
</script>

<style>

</style>
